package com.share.shareplatform.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role {

    private Long id;
    @NotBlank(message = "名称不能为空")
    @Length(max=20,message ="名称太长")
    private String name;
    @Length(max=100,message ="描述不能太长")
    private String description;

    private List<Authority> authorityList;

    public static final Long Role_user=1l;
    public static final Long Role_seller=2l;
    public static final Long Role_admin=3l;
}
